<?php

/**
 * HomeworkAssigment form.
 *
 * @package    elearning
 * @subpackage form
 * @author     bttHang
 */
class HomeworkAssigmentForm extends BaseHomeworkAssigmentForm
{
  public function configure()
  {
	//un display
	unset( $this['created_at'],  $this['updated_at'] );
	$this->setDefaults( array('updated_at' => time() ) );
	//create thi chi set create
	if( $this->isNew() )
		$this->setDefaults( array('created_at' => time() ) );
	
    $this->widgetSchema->setNameFormat('HomeworkAssigment[%s]');
	//set label
	$this->widgetSchema->setLabels(  
             array(  
                 'homework_id'      => 'Homework name(*) ',  
                 'class_id'     => 'Class name (*)',
				 'hwa_expired'  => 'Homework expired'
             )  
         );  
	
  }
}
